import {handleActions} from 'redux-actions';
import {serverError} from '../actions/system';

export default handleActions({
  [serverError](state, action) {
    return Object.assign({}, state, {errorMessage: action.payload});
  }
}, {
    errorMessage: void 0
});